home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / tabvie.zip / EDITVW.CPP < prev    next >
C/C++ Source or Header  |  1994-04-13  |  1KB  |  65 lines

  1. // editvw.cpp : implementation of the CEditVw class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "tab.h"
  6.  
  7. #include "tabdoc.h"
  8. #include "tabview.h"
  9. #include "editvw.h"
  10.  
  11. #ifdef _DEBUG
  12. #undef THIS_FILE
  13. static char BASED_CODE THIS_FILE[] = __FILE__;
  14. #endif
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CEditVw
  18. #define BASE CEditView
  19. #define THIS CEditVw
  20.  
  21. IMPLEMENT_DYNCREATE(CEditVw,CEditView)
  22.  
  23. BEGIN_MESSAGE_MAP(CEditVw,CEditView)
  24.     //{{AFX_MSG_MAP(CEditVw)
  25.     ON_WM_SYSCOMMAND()
  26.     //}}AFX_MSG_MAP
  27. END_MESSAGE_MAP()
  28.  
  29. /////////////////////////////////////////////////////////////////////////////
  30. // CEditVw construction/destruction
  31.  
  32. THIS::THIS()
  33. {
  34. }
  35.  
  36. THIS::~THIS()
  37. {
  38. }
  39.  
  40. #ifdef _DEBUG
  41. CTabDoc* THIS::GetDocument() // non-debug version is inline
  42. {
  43.     ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CTabDoc)));
  44.     return (CTabDoc*) m_pDocument;
  45. }
  46.  
  47. #endif //_DEBUG
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50. // CEditVw message handlers
  51. void THIS::OnSysCommand(UINT nChar,LONG lParam)
  52. {
  53.     if(m_pTabView->doSysCommand(nChar,lParam))
  54.         return;
  55.     BASE::OnSysCommand(nChar,lParam);
  56. }
  57. BOOL THIS::PreCreateWindow(CREATESTRUCT& cs)
  58. {
  59.     BOOL temp = BASE::PreCreateWindow(cs);
  60.     cs.style =     cs.style |
  61.     WS_HSCROLL | WS_VSCROLL |
  62.     ES_AUTOHSCROLL | ES_AUTOVSCROLL |
  63.     ES_MULTILINE | ES_NOHIDESEL;
  64.     return temp;
  65. }